#!/bin/bash

echo "Deleting persistent data..."

rm -rf /data/*

PID=$(pidof etcd)
while kill -0 $PID &> /dev/null; do
  kill $PID
  sleep 1
done
